package interfaceClass;

import java.util.Comparator;

/**
 * Created by jyo on 15-11-8.
 */
/*public class EmployeeCmp implements C{
}*/
class EmployeeCmp implements Comparator<Employee> {





    @Override
    public int compare(Employee o1, Employee o2) {
        return Double.compare(o1.getSalary(),o2.getSalary());
    }
}